﻿using System.Collections.Generic;
using Shuba.Model;
using System;

namespace Shuba.Business
{
    public class BranchNipSOMap
    {
        private Data.BranchNipSOMap BranchNipSO;

        public BranchNipSOMap()
        {
            BranchNipSO = new Data.BranchNipSOMap();
        }

        public List<BranchNipSOMapInfo> GetList(string value)
        {
            return BranchNipSO.GetList(value);
        }

        public List<BranchNipSOMapInfo> GetListPaging(string value, int currPage, int dataPerPage)
        {
            return BranchNipSO.GetListPaging(value, currPage, dataPerPage);
        }

        public int GetRowListPaging(string value)
        {
            return BranchNipSO.GetRowListPaging(value);
        }

        public BranchNipSOMapInfo Get(string NIP)
        {
            return BranchNipSO.Get(NIP);
        }

        public BranchNipSOMapInfo GetApprovalByID(string NIP)
        {
            return BranchNipSO.GetApprovalByID(NIP);
        }

        public BranchNipSOMapInfo GetUMByUnit(string UnitCode)
        {
            return BranchNipSO.GetUMByUnit(UnitCode);
        }

        public BranchNipSOMapInfo GetByAOCode(string AOCode, string AppCode)
        {
            return BranchNipSO.GetByAOCode(AOCode, AppCode);
        }

        public List<BranchNipSOMapInfo> GetListApproval(string value, string UpdateBy, string AppCodeList)
        {
            return BranchNipSO.GetListApproval(value, UpdateBy.TrimEnd(), AppCodeList);
        }

        public void Save(BranchNipSOMapInfo MapInfo)
		{
            BranchNipSO.Save(MapInfo);
		}

        public int Approve(string NIP, string ActType, string UpdateBY, DateTime UpdateDate)
        {
            return BranchNipSO.Approve(NIP, ActType, UpdateBY, UpdateDate);
        }

        public int Reject(string NIP)
        {
            return BranchNipSO.Reject(NIP);
        }
    }
}
